package com.lapelife.backend.common;

public enum ErrorCode {
    SYSTEM_ERROR("系统错误",5000),
    PARAMS_ERROR("参数异常",5010),
    RESULT_ERROR("返回结果异常", 5020),
    CACHE_ERROR("数据缓存异常",5020),
    UNKNOWN_ERROR("未知异常", -1),
    TRANSITION_ERROR("业务处理异常", 6000);
    private String msg;
    private Integer code;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    ErrorCode(String msg, Integer code) {
        this.msg = msg;
        this.code = code;
    }
}
